Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

320
Views
How do I build an "index" of my TypeScript API without it showing up on IntelliSense all the time?

I wrote an index.ts file which exports * from 'oneOfManyApiFiles' and also wraps all my API functions in a single object, so end-users can simply do

const api = (await require("myApi")).getApi()
api.callOneOfManyApiFunctions();

index.ts also enables TypeDoc to create a nice HTML page with information on all the exported types and functions.

The problem is that when I'm writing code (VS Code), IntelliSense always chooses to import symbols from index.ts (because it re-exports everything), rather than the actual file which originally exports the symbol. It seemed necessary for me to re-export everything to enable TypeDoc, but that also seems to be the root of my problems.

Is there a better way to go about organizing my project?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!